import { Desc, Entity, PrimaryUuid, Title, Image, CardCategoryId, CreateDate, UpdateDate, DisplayOrder } from '@sker/core'
@Entity({ name: 'card_category' })
export class CardCategory {
    @PrimaryUuid({
        primaryKeyConstraintName: 'FK_CARD_CATEGORY_ID'
    })
    id: string;

    @Title()
    title: string;

    @Desc({ nullable: true, default: '' })
    desc: string;

    @Image({ nullable: true, default: '' })
    cover: string;

    @CardCategoryId({ nullable: true })
    pid!: string;

    @DisplayOrder({ comment: '排序' })
    displayorder: number;

    @CreateDate()
    date_date: Date;

    @UpdateDate()
    update_date: Date;
}